Consolidate some pipeline stages
authorFelix Krull <f_krull@gmx.de>
Fri, 31 May 2019 09:06:21 +0000 (11:06 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml

index fa0ff107823492a9d016d3a9c40c7350d165ab22..c4dd55ad23b18a3d9537cd6b09d328c727496571 100644 (file)
@@ -21,42 +21,26 @@ cache:
   - sccache/
 
 stages:
-- check
 - build
 - publish
 
-# checks
+# format and freshness checks
 check:
-  stage: check
+  stage: build
   script:
-  - rustup component add clippy rustfmt
+  - rustup component add rustfmt
   - cargo fmt --all -- --check
-  - cargo clippy --all ${CURRENT_FEATURES} -- -D warnings
-
-gir:
-  stage: check
-  script:
   - rm -rf src/auto/
   - make gir
   - git diff -R --exit-code
 
-# ostree-sys
-ostree-sys:
-  stage: build
-  script:
-  - cargo test --verbose --manifest-path sys/Cargo.toml ${CURRENT_FEATURES}
-
-publish_ostree-sys:
-  stage: publish
-  script:
-  - cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
-  cache: {}
-  when: manual
-
-# ostree
+# build
 ostree:
   stage: build
   script:
+  - rustup component add clippy
+  - cargo clippy --all ${CURRENT_FEATURES} -- -D warnings
+  - cargo test --verbose --manifest-path sys/Cargo.toml ${CURRENT_FEATURES}
   - cargo test --verbose ${CURRENT_FEATURES}
 
 ostree_default_features:
@@ -64,13 +48,6 @@ ostree_default_features:
   script:
   - cargo test --verbose
 
-publish_ostree:
-  stage: publish
-  script:
-  - cargo publish --verbose --token $CRATES_IO_TOKEN
-  cache: {}
-  when: manual
-
 # docs
 docs:
   stage: build
@@ -103,3 +80,18 @@ pages:
     - public
   only:
   - master
+
+# publish
+publish_ostree-sys:
+  stage: publish
+  script:
+  - cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
+  cache: {}
+  when: manual
+
+publish_ostree:
+  stage: publish
+  script:
+  - cargo publish --verbose --token $CRATES_IO_TOKEN
+  cache: {}
+  when: manual